import gen
from alg import can_form_square

if __name__ == "__main__":
    n = 10  # 你想生成的火柴棍数目
    matchsticks = gen.generate_matchsticks(n)

    print("生成的火柴棍长度:", matchsticks)
    result = can_form_square(matchsticks)
    print("能否用火柴棍构成正方形:", result)